package com.lanchetech.dao;
import java.util.List;
import org.apache.ibatis.annotations.Param;

import com.lanchetech.entity.BankAccount;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface BankAccountMapper {
    int deleteByPrimaryKey(Long id);

    int insert(BankAccount record);

    int insertSelective(BankAccount record);

    BankAccount selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(BankAccount record);

    int updateByPrimaryKey(BankAccount record);

    int deleteByIdAndUserId(@Param("id")Long id,@Param("userId")Long userId);

    List<BankAccount> findAllByUserId(@Param("userId")Long userId);

    BankAccount findOneByUserId(@Param("userId")Long userId);

}